import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

SizedBox hiSpace({double height = 1, double width = 1}) {
  return SizedBox(
    height: height,
    width: width,
  );
}

SizedBox hrPlaceholder(
    {double height = 1,
    double width = 0,
    double strokeWidth = 5,
    Color color = Colors.green}) {
  if (width == 0) {
    return SizedBox(
        width: width,
        height: height,
        child: Placeholder(
          color: color,
          strokeWidth: strokeWidth,
        ));
  } else {
    return SizedBox(
        height: height,
        child: Row(
          children: [
            Placeholder(
              fallbackWidth: width,
              color: color,
              strokeWidth: strokeWidth,
            )
          ],
        ));
  }
}
